$color-text: #333;

// 多行输入框
.el-textarea__inner {
    resize: none;
}
.el-textarea .el-input__count {
    line-height: normal;
}
.el-input__suffix {
    display: flex;
    align-items: center;
}

// 表格
.el-table__body-wrapper {
    &::-webkit-scrollbar {
        // display: none;
        width: 6px;
    }
    // 整条
    &::-webkit-scrollbar-track {
        border-radius: 10px;

// background: #F7F9FA;
        background: transparent;
    }
    // 滑块
    &::-webkit-scrollbar-thumb {
        border-radius: 10px;
        background: rgb(212 212 212);
    }

    &::-webkit-scrollbar-thumb:hover {
        border-radius: 10px;
        background: rgb(153, 153, 153);
    }

    &::-webkit-scrollbar-thumb:active {
        border-radius: 10px;
        background: rgb(117, 117, 117);
    }
}
// 表格斑马纹
.table-custom .el-table__row:nth-of-type(2n) {
    background-color: #f0f9eb;
}
// 表格头部颜色
.table-custom .el-table__header {
    background-color: #1e2650;
}
.table-custom th > .cell {
    color: #374a5e;
}
// 表格内容变化数据样式
.table-custom .change-row {
    background-color: #fbeeee !important;
}
.el-table__fixed-left, .el-table__fixed-right {
    background-color: #fff;
}

// 按钮
// 删除按钮颜色
.el-button--danger {
    border-color: #d43030;
    background-color: #d43030;
}
// 大按钮，修改按钮的宽度padding值
.btn-custom {
    padding: 10px 15px;
}
// 表格竖着排一起的按钮
.btn-custom--column .el-button {
    margin: 2px 0;
}

// MessageBox 弹框（自定义$msgbox）
// 有按钮的弹框样式
.showBtnMessage {
    width: 355px;
    height: 241px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    background: #fff;
    .el-message-box__header {
        display: none;
    }

    .msg-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto;
        margin-top: 15px;
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }

    .msg-text {
        margin: 20px 0 25px 0;
        font-size: 18px;
        text-align: center;
        color: $color-text;
    }

    .el-message-box__btns {
        text-align: center;
    }
    .showBtnMessage_cancelBtn {
        width: 100px;
        height: 32px;
        padding: 0 10px;
        box-sizing: border-box;
        border: 1px solid #999;
        font-size: 14px;
        line-height: 30px;
        color: $color-text;
        background-color: transparent;
    }

    .showBtnMessage_confirmBtn {
        width: 100px;
        height: 32px;
        margin-left: 70px !important;
        padding: 0 10px;
        box-sizing: border-box;
        border: none;
        font-size: 14px;
        line-height: 32px;
        color: #fff;
        background: #387dff;
    }
}
// 无按钮的弹框样式
.showMessage {
    width: 369px;
    height: 226px;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    background: #fff;
    .el-message-box__header {
        display: none;
    }
    .msg-wrap {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 216px;
    }
    .msg-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto;
        margin-top: 15px;
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }

    .msg-text {
        margin: 20px 0 25px 0;
        font-size: 18px;
        text-align: center;
        color: $color-text;
    }
    .el-message-box__btns {
        display: none;
    }
}

// dialog弹窗
.el-dialog {
    padding: 20px 25px;
    border: 1px solid #41465c;
    border-radius: 10px;
    background: #1e2650;
}
.el-dialog__body {
    color: #fff;
}
.dialog-footer {
    margin-bottom: 10px;
    // .el-button{
    //     width: 100px;
    //     height: 40px;
    //     // border-radius: 10px;
    //     &+.el-button {
    //         margin-left: 80px;
    //     }
    // }
}
// 弹窗内容多的
.dialog-custom .el-dialog {
    margin-top: 5vh !important;
    margin-bottom: 5vh;
}
// 弹窗内容少的
.dialog-custom-small {
    display: flex;
    justify-content: center;
    align-items: center;
}
// 弹窗居中
.dialog-custom-small .el-dialog {
    margin: 0;
    margin-top: 0vh !important;
}
// 弹窗的padding
.dialog-custom .el-dialog__body, .dialog-custom-small .el-dialog__body {
    padding: 24px 24px;
}
// 直播新加
// custom-class设置弹窗
.dialog-custom-class {
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    background: #fff;
    .el-dialog__header {
        padding: 16px 0 15px 0;
        border-bottom: 1px solid #e3e3e3;
        font-size: 18px;
        text-align: center;
        .el-dialog__title {
            color: $color-text;
        }
    }
    .el-dialog__headerbtn {
        top: auto;
        right: 20px;
        font-size: 22px;
    }
    .el-dialog__headerbtn .el-dialog__close {
        color: #666;
    }
    .el-dialog__footer {
        padding: 10px;
        box-sizing: border-box;
        border-top: 1px solid #e3e3e3;
        text-align: center;
    }
    .dialog-main {
        margin: 2px 18px 9px 18px;
        font-size: 14px;
        color: $color-text;
    }

    .dialog-footer-btn1 {
        width: 140px;
        height: 30px;
        margin: 0 26px;
        padding: 0;
        border: 1px solid #999;
        font-size: 14px;
        color: $color-text;
        background-color: transparent;
    }

    .dialog-footer-btn2 {
        width: 140px;
        height: 30px;
        padding: 0;
        font-size: 14px;
        background: #387dff;
    }
    .el-button.is-disabled, .el-button.is-disabled:focus, .el-button.is-disabled:hover {
        border-color: #ebeef5;
        color: #c0c4cc;
        background-color: #fff;
        background-image: none;
        cursor: not-allowed;
    }
    .dialog-input-inner .el-input__inner {
        height: 44px;
        border: 1px solid #f1f1f1;
        border-radius: 5px;
        font-size: 14px;
        color: $color-text;
        background: #f6f8f9;
        &::placeholder {
            font-size: 14px;
            color: #999;
        }
    }
}

// 消息弹出框
.messagebox-custom-class {
    padding: 20px 35px;
    border: 1px solid #41465c;
    border-radius: 10px;
    background: #1e2650;
    .el-message-box__content {
        height: calc(100% - 85px);
        padding-top: 25px;
        box-sizing: border-box;
        color: rgba(161, 161, 170, 1);
    }
    .el-message-box__btns {
        justify-content: center;
        .el-button {
            width: 100px;
            height: 40px;
            margin: 0 25px;
            border-radius: 10px;
        }
    }
}

// 分页
// 分页导航
.pagination-custom {
    margin-top: 10px;
}

// 图片
// 上传图片查看大图X按钮颜色
.el-image-viewer__close .el-icon-circle-close {
    color: #fff;
}
.img-custom--40 {
    width: 40px;
    height: 40px;
    vertical-align: bottom;
    .el-image__inner {
        object-fit: cover;
    }
}
.img-custom--80 {
    width: 80px;
    height: 80px;
    vertical-align: bottom;
    .el-image__inner {
        object-fit: cover;
    }
}
.img-custom--100 {
    width: 100px;
    height: 100px;
    vertical-align: bottom;
    .el-image__inner {
        object-fit: cover;
    }
}
// 图片加载失败
.el-image__error {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    vertical-align: middle;
    color: $color-text;
    background: #ccc;
}
// 图片加载中样式
.image-err, .image-load {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-size: 18px;
    color: $color-text;
    background: #ccc;
}

// 进度条
// 进度条加载完成样式
.progress-custom {
    .el-progress-bar__inner {
        background-image: linear-gradient(to right, #5980ca, #409eff) !important;
    }
    // 进度条加载中样式
    .el-progress-bar__inner {
        background: repeating-linear-gradient(
        -45deg,
        #76bbff 25%,
        #409eff 0,
        #409eff 50%,
        #76bbff 0,
        #76bbff 75%,
        #409eff 0
        ) !important;
        background-size: 16px 16px !important;
        animation: panoramic 20s linear infinite !important;
    }
    .el-progress-bar__outer {
        background-color: #eee;
    }
}
// 进度条加载动画
@keyframes panoramic {
    to {
        background-position: 200% 0;
    }
}

// tab栏
.tabs-custom > .el-tabs__header {
    margin: 0;
    border-bottom: 1px solid #282825;
    background-color: #818181;
}
.tabs-custom > .el-tabs__header .el-tabs__item:not(.is-disabled):hover {
    color: #282825;
}
.tabs-custom > .el-tabs__header .el-tabs__item.is-active {
    color: #818181;
}
.tabs-custom > .el-tabs__header .el-tabs__item {
    color: #fff;
}
.tabs-custom .el-tabs__nav-wrap.is-scrollable {
    padding: 0 12px;
}
// tab栏左右箭头颜色
.tabs-custom .el-tabs__nav-next, .el-tabs__nav-prev {
    color: #fff;
    background-color: rgb(100, 100, 100);
}

// 级联选择器
.cascader-custom--medium {
    width: 230px;
}

// el-input的type是number时去掉自带上下箭头
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
}
input[type='number'] {
       -moz-appearance: textfield;
    -webkit-appearance: textfield;
        -ms-appearance: textfield;
            appearance: textfield;
}

// 标签
// el-tag添加标签
.tag-custom--add .el-tag {
    height: auto;
    margin-top: 5px;
    margin-right: 8px;
    padding: 4px 10px;
    line-height: normal;
    white-space: normal;
}
.tag-custom--add .button-new-tag {
    height: 32px;
    margin-top: 5px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 30px;
}
.tag-custom--add .input-new-tag {
    width: 120px;
    margin-top: 3px;
    margin-right: 10px;
    vertical-align: bottom;
}
// 多排标签间距
.tag-custom--column {
    margin-right: 8px;
    margin-bottom: 8px;
}

// 多选框带边框
.checkbox-custom--border.is-bordered + .checkbox-custom--border.is-bordered {
    margin: 3px 12px 9px 0;
}
.checkbox-custom--border {
    margin-right: 12px;
}
.checkbox-custom--border.is-bordered.el-checkbox--small {
    padding-top: 7px;
}
.el-checkbox {
    // display: flex;
    align-items: center;

    -webkit-tap-highlight-color: transparent;
    .el-checkbox__inner {
        width: 20px;
        height: 20px;
        border: 1px solid #999;
        border-radius: 4px;
        background-color: transparent;
        transition: none;
    }
    .el-checkbox__inner::after {
        top: 2px;
        left: 5px;
        width: 5px;
        height: 9px;
        border-width: 2px;
    }
    .is-checked {
        .el-checkbox__inner {
            border-color: #387dff;
            border-radius: 4px;
            background-color: #387dff;
        }
    }
    .el-checkbox__label {
        font-size: 16px;
        font-weight: normal;
        line-height: 18px;
        color: $color-text !important;
    }
}

// tooltip文字提示最大宽度
.tooltip-custom {
    max-width: 300px;
    line-height: 1.25;
}
// 所有tooltip文字提示，变革单行文字超出
.el-tooltip__popper {
    max-width: 300px;
}

// 弹出框
.popper-class {
    min-width: 104px;
    padding: 7px 0;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    background: #f6f8f9;
    box-shadow: 0 2px 4px 0 #f9f9f9;
    .popover-content {
        height: 36px;
        font-size: 14px;
        line-height: 36px;
        text-align: center;
        color: #666;
        cursor: pointer;
    }

    .popover-content-active, .popover-content:hover {
        position: relative;
        z-index: 1;
        border-radius: 4px;
        color: #fff;
        background: #387dff;
    }
}
.popper-class[x-placement^='right'] .popper__arrow::after {
    border-right-color: #f6f8f9;
}

// 加载loading
.el-loading-mask {
    z-index: 99999 !important;
}

// 图片预览
.el-image-viewer__canvas img {
    width: auto;

    object-fit: contain;
}
// .el-image {
// 	// border: 1px solid #d6d6d6;
// 	box-shadow: 0 0 0 1px #d6d6d6;
// }

// 小屏
@media (max-width: 767px) {
    // 按钮
    .btn-custom {
        padding: 8px 12px;
    }
    // 小屏下按钮padding值
    .btn-custom--small, .btn-custom--small.is-round {
        margin-top: 10px;
        padding: 8px 16px;
        font-size: .8rem;
    }

    // dialog弹窗
    // 小屏下弹窗宽度
    .dialog-custom .el-dialog, .dialog-custom-small .el-dialog {
        width: 94% !important;
        // 弹窗的padding
        .el-dialog__body {
            padding: 0 20px 10px 20px;
        }
    }

    // 分页
    // 分页导航
    .pagination-custom {
        position: relative;
        height: 70px;
        margin-top: 20px;
        // 分页按钮高度
        .el-pager li {
            height: 27px;
        }
        // 总条数
        span {
            position: absolute;
            bottom: 0;
        }
        // 分页的前往
        .el-pagination__jump {
            margin-top: 10px;
            margin-left: 0;
        }
        // 分页中的前往位置
        .el-pagination__jump {
            position: absolute;
            right: 0;
            bottom: 0;
        }
        // 分页中的前往页输入框
        .el-pagination__editor.el-input .el-input__inner {
            width: 34px;
            height: 24px;
        }
    }
    // 分页按钮
    .pagination-custom.is-background .btn-prev, .pagination-custom.is-background .btn-next, .pagination-custom.is-background .el-pager li {
        min-width: 27px;
        margin: 0 3px;
    }

    // 图片
    .el-upload__text::before {
        content: '点击上传';
    }

    // tab栏
    .tabs-custom > .el-tabs__content {
        padding: 5px;
    }

    // 级联选择器
    .cascader-custom--medium {
        line-height: 26px;
        .el-input__icon {
            height: 26px;
            line-height: 26px;
        }
    }
    // 级联选择器面板显示不全
    .el-cascader-menu__wrap {
        margin-right: 0 !important;
    }

    // 表单
    // 表单标签竖向排列
    .form-custom {
        .el-form-item__label {
            float: none;
        }
        // 新增表单输入框
        .el-form-item__content {
            margin-left: 0 !important;
        }
        // 表单项上下间距
        .el-form-item {
            margin-bottom: 10px;
        }
        // 表单项内部输入框间距
        .el-input--medium .el-input__inner {
            height: 26px;
        }
        // 表单项标签和输入框间距
        .el-form-item--medium .el-form-item__content {
            line-height: 26px;
        }
        // input框的图标位置
        .el-input--medium .el-input__icon {
            line-height: 26px;
        }
    }

    // message-box
    // 小屏下confirm弹窗的宽度
    .el-message-box {
        width: 80%;
    }

    // 日期范围选择器
    // 日期范围选择器的输入框
    .date-custom__range.el-input__inner {
        width: 100%;
    }
    // 日期范围选择器的选择日期页面
    .date-custom__range__popper {
        width: auto;
        .el-picker-panel__body {
            width: 300px;
            min-width: 0;
        }
        .el-date-range-picker__content {
            width: 100%;
            padding: 5px;
        }
        .el-date-table td {
            width: 28px;
            height: 28px;
            padding: 0;
        }
        .el-date-table td div {
            height: 24px;
            padding: 0;
        }
    }
    // 有左侧面板的日期范围选择器
    .date-custom__range__popper.has-sidebar {
        width: auto;
    }
    .date-custom__range__popper .el-picker-panel__sidebar {
        width: 85px;
    }
    .date-custom__range__popper .el-picker-panel__sidebar + .el-picker-panel__body {
        width: 240px;
        margin-left: 80px;
    }
    .date-custom__range__popper .el-picker-panel__shortcut {
        padding-left: 5px;
    }

    // el-tag添加标签
    .tag-custom--add .el-tag {
        margin-top: 8px;
        margin-right: 8px;
    }
}
